package video.com.mapper;

import org.apache.ibatis.annotations.Param;
import video.com.entity.UserBehavior;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xwj
 * @since 2024-03-11
 */
public interface UserBehaviorMapper extends BaseMapper<UserBehavior> {
    void updateUserBehavior(@Param("info") Map<String, Object> info);

    UserBehavior selectByKeyIdAndUSerId(@Param("keyId") String keyId,@Param("userId") String userId);

    List<Map<String, Object>> getUserBehaviorToVideo(@Param("start") int start,@Param("size") int size);

    int getUserBehaviorToVideoCount();

    Map<String, Object> getUserActionByUidAndVid(@Param("uid") String uid, @Param("vid") String vid);


}
